package android.example.graphictest;

import android.R.color;
import android.app.TabActivity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.os.Debug;
import android.widget.TabHost;

public class GraphicTest extends TabActivity {
   public static final  String[] TABS  = {"Animation","AlphaPNG","LineDraw","G3D","FillRate","Text"};
   public static final  String PACKAGE = "android.example.graphictest";
   
	@Override
    public void onCreate(Bundle savedInstanceState) {
   
		super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        TabHost tabs = getTabHost();
        //tabs.setBackgroundColor(color.background_light);
        tabs.setBackgroundColor(color.black);
        for(int i = 0; i < TABS.length; i++)
        {
        	ComponentName oneActivity = new ComponentName(PACKAGE, PACKAGE
					+ "." + TABS[i]);
        	tabs.addTab(tabs.newTabSpec(TABS[i])
        			.setIndicator(TABS[i])
        			.setContent(new Intent().setComponent(oneActivity)));
        }
        
    }
}